package com.xiaoda.service;

import com.xiaoda.entity.Article;

import java.util.List;
import java.util.Map;

public interface ArticleService {

    List<Article> findAll();

    Article findById(int id);

    Article findFullById(int id);

    List<Article> findByKeyword(String keyword, int start, int end);

    List<Article> findConcern(String uid, int start, int end);

    List<Article> findMoreThan(int start, int end);

    List<Article> findLessThan(int start, int end);

    List<Article> findTop50();

    List<Article> findAllByUid(String uid, int start, int end);

    List<Article> findAllTreasured(String account, int start, int end);

    List<Article> findAllHobbies(String account, int start, int end);

    int countArticleNum(String account);

    List<Article> findOtherArticles(String account, int aid);

    int hasLook(int id);

    int addArticle(String title, String content, String account);

    int deleteByUid(String uid);

    List<Article> searchArticles(Map<String, Object> map);

    int deleteById(int id);

    int updateArticle(Map<String, Object> article);

    int insertArticle(Map<String, Object> map);

}
